﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;
using System.Runtime.InteropServices;

namespace CommandMail
{
    public class MailHelper
    {
        public static bool ValidateMailAddress(string mailAddress)
        {
            try
            {
                MailAddress ma = new MailAddress(mailAddress);
                return true;
            }
            catch (Exception)
            {
                return false;
            } 
        }
    }
}
